package asia.huangxi.project.controller;

import asia.huangxi.project.service.OkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author huangxi
 * @class OkController
 * @description OkController
 * @create 2022-10-19 17:29
 */
@RestController
public class OkController {
    private final OkService okService;

    public OkController(OkService okService) {
        this.okService = okService;
    }

    @GetMapping("hello/{id}")
    public String ok(@PathVariable String id) {
        return this.okService.ok(id);
    }
}
